﻿<%@ Page Title="Nulstil Password" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="resetPassword.aspx.cs" Inherits="UCNKompetenceBors.Login.resetPassword" Culture="auto" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="resetPasswordWrapper" class="contentBoxLarge floatLeft">
        <div class="contentBoxLargeInnerMargin">
            <div id="resetPasswordBox" class="centerBox">
                <asp:Panel ID="panResetPasswordForm" runat="server">
                    <div>
                        <asp:Label ID="lblResetPassword" runat="server" CssClass="contentTitle" Text="Reset Password"></asp:Label>
                    </div>
                    <div class="floatLeft">
                        <div class="divTableCellLeft">
                            <asp:Label ID="lblPassword" runat="server" Text="Password: "></asp:Label>
                        </div>

                        <div class="divTableCellRight">
                            <asp:TextBox ID="txtPassword" runat="server" TextMode="Password"></asp:TextBox>
                        </div>
                    </div>
                    <div class="floatLeft">
                        <div class="divTableCellLeft">
                            <asp:Label ID="lblConfirmPassword" runat="server" Text="Confirm Password: "></asp:Label>
                        </div>

                        <div class="divTableCellRight">
                            <asp:TextBox ID="txtConfirmPassword" runat="server" TextMode="Password"></asp:TextBox>
                        </div>
                    </div>
                    <div class="centerBox">
                        <div>
                            <asp:RequiredFieldValidator ID="rfvalPassword" runat="server" ValidationGroup="ResetPassword" ErrorMessage="New password required" ToolTip="You need to enter a new password" Text="New password required" Display="Dynamic" ControlToValidate="txtPassword" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                        <div>
                            <asp:RequiredFieldValidator ID="rfvalConfirmPassword" runat="server" ValidationGroup="ResetPassword" ErrorMessage="Confirm new password required" ToolTip="You need to confirm the new password" Text="Confirm new password required" Display="Dynamic" ControlToValidate="txtConfirmPassword" ForeColor="Red"></asp:RequiredFieldValidator>
                        </div>
                        <div>
                            <asp:CompareValidator ID="compvalConfirmPassword" runat="server" ValidationGroup="ResetPassword" ErrorMessage="The passwords entered do not match" ToolTip="The passwords entered do not match" Text="The passwords entered do not match" ControlToValidate="txtConfirmPassword" ControlToCompare="txtPassword" Display="Dynamic" ForeColor="Red"></asp:CompareValidator>
                        </div>
                    </div>
                    <div class="divTableCellRight">
                        <div class="floatRight">
                            <asp:Button ID="btnResetPassword" runat="server" Text="Reset Password" ValidationGroup="ResetPassword" CssClass="button" OnClick="btnResetPassword_Click" />
                        </div>
                    </div>
                </asp:Panel>

                <div>
                    <asp:Label ID="lblResetPasswordMessage" runat="server"></asp:Label>
                    <br />
                    <asp:HyperLink ID="hyLinkConfirm" runat="server" Visible="false" NavigateUrl="~/default.aspx" CssClass="link"></asp:HyperLink>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
